package com.lk.spring.boot.sample.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
 * 错误页面处理
 * 找templates下面的文件
* <p>Title:ErrorPageController </p>
* <p>Description: </p>
* <p>Company: </p> 
* @author kexl
* @date 下午1:31:40
 */
@Controller
public class ErrorPageController {

	@GetMapping("/400")
	public String badRequest(){
		 return "error/400";
	}
	@GetMapping("/404")
	public String notFount(){
		return "error/404";
	}
	@GetMapping("/500")
	public String serverError(){
		return "error/500";
	}
}
